<?php

// http
$data = array(
    'get'   => $_GET,
    'post_formdata' => $_POST,
    'post_body'     => file_get_contents('php://input'),
    'file'          => $_FILES
);

die(json_encode($data));
